package com.pm.service.task.impl;

import com.pm.entity.po.task.Task;
import com.pm.entity.vo.dept.DeptTaskNumVo;
import com.pm.entity.vo.task.TaskNameVo;
import com.pm.mapper.task.TaskMapper;
import com.pm.service.impl.BaseServiceImpl;
import com.pm.service.task.TaskService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TaskServiceImpl extends BaseServiceImpl<Task> implements TaskService {

    @Resource
    private void setBaseMapper(TaskMapper taskMapper) {
        super.setBaseMapper(taskMapper);
    }

    @Resource
    private TaskMapper taskMapper;

    @Override
    public List<TaskNameVo> getAllTaskNameByYearList(DeptTaskNumVo deptTaskNumVo) {
        return taskMapper.getAllTaskNameByYearList(deptTaskNumVo);
    }

    @Override
    public List<TaskNameVo> getRmParentTaskNameList(DeptTaskNumVo deptTaskNumVo) {
        return taskMapper.getRmParentTaskNameList(deptTaskNumVo);
    }
}
